<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入样式 -->
    <script src="./vue.js"></script>
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <!-- 引入组件库 -->
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>
    <title>Document</title>
</head>

<body>
    <!-- 这里写框架 -->



    <div id="app">
        <button @click="show = true">费用配置</button>
        <el-dialog :visible.sync="show" title="费用配置">
            <!-- 这里加一个时间的选择器 -->
            <el-button type="primary" @click="look" class="btn1">查询</el-button>
            <el-button type="primary" @click="show = false ,isShow = true" class="btn1">新增</el-button>
            <div slot="footer">
                <el-button type="primary" @click="show = false" class="btn1">确定</el-button>
                <el-button @click="show = false" class="btn2">取消</el-button>
            </div>
        </el-dialog>
        <el-dialog :visible.sync="isShow" title="新增">
            <!-- 这里加一个时间的选择器 -->
            <el-input v-model="jiben" placeholder="基本电费"></el-input>
            <el-input v-model="litiao" placeholder="力调电费"></el-input>
            <el-input v-model="zhengfu" placeholder="政府基金"></el-input>

            <div slot="footer">
                <el-button type="primary" @click="isShow = false" class="btn1">确定</el-button>
                <el-button @click="isShow = false" class="btn2">取消</el-button>
            </div>
        </el-dialog>
    </div>




    <script>
        new Vue({
            el: '#app',
            data: {
                show: false,
                isShow: false,
                jiben: '',
                litiao: '',
                zhengfu: '',

            },


            method: {
                peizhi() {
                    this.show = true
console.log(1);
                },

                quxiao() {

                    this.show = false
                },
                queding() {

                    this.show = false
                },
                add() {
                    this.isShow = true

                },
                OK() {


                    this.isShow = false

                },
                NO() {

                    this.isShow = false

                }
            },




        })



    </script>

</body>

</html>